package JavaSEAdvance.day08_Collection;

import java.util.ArrayList;
import java.util.Collections;

/**
 * @author Xiao
 * @date 2021/7/25
 */
@SuppressWarnings("all")
public class D801ForDemo {
    public static void main(String[] args) {
        ArrayList<String> list = new ArrayList<>();
        Collections.addAll(list, "aa", "bb", "cc");
        for (String s : list) {
            s = "abc";
        }
        System.out.println(list);   //  [aa, bb, cc]
    }
}
